package classTest;

public class Teacher extends Person{
    private int basicSalary;
    private int teachCnt;
    @Override
    public int pay() {
        return basicSalary+teachCnt*30;
    }
}
